package com.lmc.pojo;

import java.sql.Timestamp;

/**
 * XteacherId entity. @author MyEclipse Persistence Tools
 */

public class XteacherId implements java.io.Serializable {

	// Fields

	private String xtname;
	private String xtpwd;
	private String xtargee;
	private Timestamp xtime;

	// Constructors

	/** default constructor */
	public XteacherId() {
	}

	/** full constructor */
	public XteacherId(String xtname, String xtpwd, String xtargee,
			Timestamp xtime) {
		this.xtname = xtname;
		this.xtpwd = xtpwd;
		this.xtargee = xtargee;
		this.xtime = xtime;
	}

	// Property accessors

	public String getXtname() {
		return this.xtname;
	}

	public void setXtname(String xtname) {
		this.xtname = xtname;
	}

	public String getXtpwd() {
		return this.xtpwd;
	}

	public void setXtpwd(String xtpwd) {
		this.xtpwd = xtpwd;
	}

	public String getXtargee() {
		return this.xtargee;
	}

	public void setXtargee(String xtargee) {
		this.xtargee = xtargee;
	}

	public Timestamp getXtime() {
		return this.xtime;
	}

	public void setXtime(Timestamp xtime) {
		this.xtime = xtime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof XteacherId))
			return false;
		XteacherId castOther = (XteacherId) other;

		return ((this.getXtname() == castOther.getXtname()) || (this
				.getXtname() != null && castOther.getXtname() != null && this
				.getXtname().equals(castOther.getXtname())))
				&& ((this.getXtpwd() == castOther.getXtpwd()) || (this
						.getXtpwd() != null && castOther.getXtpwd() != null && this
						.getXtpwd().equals(castOther.getXtpwd())))
				&& ((this.getXtargee() == castOther.getXtargee()) || (this
						.getXtargee() != null && castOther.getXtargee() != null && this
						.getXtargee().equals(castOther.getXtargee())))
				&& ((this.getXtime() == castOther.getXtime()) || (this
						.getXtime() != null && castOther.getXtime() != null && this
						.getXtime().equals(castOther.getXtime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getXtname() == null ? 0 : this.getXtname().hashCode());
		result = 37 * result
				+ (getXtpwd() == null ? 0 : this.getXtpwd().hashCode());
		result = 37 * result
				+ (getXtargee() == null ? 0 : this.getXtargee().hashCode());
		result = 37 * result
				+ (getXtime() == null ? 0 : this.getXtime().hashCode());
		return result;
	}

}